<nz-row nzType="flex" nzJustify="end" style="margin: 28px">
  <nz-col>
    <button nz-button nzType="primary" routerLink="/add">添加比赛</button>
  </nz-col>
</nz-row>
<nz-table #nzTable [nzData]="dataSet" [nzLoading]="loading">
  <thead>
    <tr>
      <th nzWidth="100px" nzLeft="0px">比赛ID</th>
      <th nzWidth="100px">主队</th>
      <th nzWidth="100px">客队</th>
      <th nzWidth="80px">主队Logo</th>
      <th nzWidth="80px">客队Logo</th>
      <th>比赛类别</th>
      <th>比赛时间</th>
      <th nzWidth="100px" nzRight="0px">Action</th>
    </tr>
  </thead>
  <tbody>
    <tr *ngFor="let data of nzTable.data">
      <td nzLeft="0px">{{data._id}}</td>
      <td>{{data.home_team}}</td>
      <td>{{data.custom_team}}</td>
      <td>
        <img width="40" src="{{data.home_team_logo}}" />
      </td>
      <td>
        <img width="40" src="{{data.custom_team_logo}}" />
      </td>
      <td>{{data.category}}</td>
      <td>{{data.start_time | date: 'yyyy-MM-dd HH:mm'}}</td>
      <td nzRight="0px">
        <a *ngIf="data.end !== 1" (click)="endMatch(data)">比赛结束</a>
      </td>
    </tr>
  </tbody>
</nz-table>